package com.inno.subject.infra.basic.service;

import com.inno.subject.infra.basic.entity.PlannerSubjectAnswer;

/**
 * (PlannerSubjectAnswer)表服务接口
 *
 * @author makejava
 * @since 2024-12-01 09:56:07
 */
public interface PlannerSubjectAnswerService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    PlannerSubjectAnswer queryById(Long id);



    /**
     * 新增数据
     *
     * @param plannerSubjectAnswer 实例对象
     * @return 实例对象
     */
    PlannerSubjectAnswer insert(PlannerSubjectAnswer plannerSubjectAnswer);

    /**
     * 修改数据
     *
     * @param plannerSubjectAnswer 实例对象
     * @return 实例对象
     */
    PlannerSubjectAnswer update(PlannerSubjectAnswer plannerSubjectAnswer);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    PlannerSubjectAnswer queryBySubjectId(Long id);
}
